package cn.softcits.thread.even2;

/**
 * @author Rocket
 * @version 10.0.1
 * @date 2021-07-04 9:16 PM
 */
public class PrintOddRunner implements Runnable {
    private PrintNumber pn;
    public PrintOddRunner(PrintNumber pn) {
        this.pn = pn;
    }
    @Override
    public void run() {
        while(true)
            pn.printOdd();
    }
}
